package com.example.utils;

import android.content.Context;
import android.content.Intent;
import android.view.View;

/**
 * Created with IntelliJ IDEA.
 * User: wlai
 * Date: 12/13/12
 * Time: 3:41 PM
 * To change this template use File | Settings | File Templates.
 */
public class OpenActivityClickListener implements View.OnClickListener {
    Context ctx;
    Class dest;

    public OpenActivityClickListener(Context ctx, Class dest) {
        this.ctx = ctx;
        this.dest = dest;
    }

    @Override
    public void onClick(View view) {
        Intent intent = new Intent(ctx, dest);
        ctx.startActivity(intent);
    }
}
